variable "number_of_instances" {
  default = ""
}
variable "rds_engine" {
  default = "MySQL"
}
variable "rds_engine_version" {
  default = "5.7"
}
variable "rds_instance_type" {
  default = "mysql.n1.micro.1"
}
variable "rds_instance_storage" {
  default = ""
}
variable "rds_instance_name" {
  default = "example"
}
variable "rds_instance_charge_type" {
  default = "Postpaid"
}
variable "rds_period" {
  default = "1" //包年包月时长 单位/月，当instance_charge_type为PrePaid有效
}
variable "rds_vswitch_id" {
  default = []
  type = list(string)
}
variable "rds_zone_id" {
  default = ""
}
variable "rds_zone_id_slave_a" {
  default = ""
}
variable "rds_zone_id_slave_b" {
  default = ""
}
variable "rds_security_ips" {
  type = list(string)
  default = []
}
variable "rds_security_group_ids" {
  type = list(string)
  default = []
}
variable "rds_security_ip_mode" {
  default = "safety"
}
variable "rds_monitoring_period" {
  default = "60" //监控频率
}
variable "rds_auto_renew" {
  default = false //包年包月时自动续订，当instance_charge_type为PrePaid有效
}
variable "rds_auto_renew_period" {
  default = "1" //续订以月为单位，当instance_charge_type为PrePaid有效
}
variable "rds_maintain_time" {
  default = ""
}
variable "rds_parameters" {
  type = list(object({
    name  = string
    value = string
  }))
  default = []  
}
variable "rds_auto_upgrade_minor_version" {
  default = "Manual"
}
variable "tags" {
  default = {}
  type = map(string)
}
variable "enable_rds_backup" {
  default = false
}
variable "enable_rds_internet" {
  default = false
}
variable "rds_backup_period" {
  type = list(string)
  default = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
}
variable "rds_backup_time" {
  default = "18:00Z-19:00Z" //备份时间范围， 02:00Z-03:00Z
}
variable "rds_retention_period" {
  default = "7" //实例备份保留天数
}
variable "rds_log_backup" {
  default = true //是否备份实例日志
}
variable "rds_log_retention_period" {
  default = "7" //实例日志备份保留天数
}
variable "rds_username" {
  default = "superadmin" //超级管理员用户
}
variable "rds_kms_password" {
  default = ""
}
variable "rds_password" {
  default = ""
}
variable "rds_account_type" {
  default = "Super"
}

